package com.hotel.entitys;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;
@Data
@ApiModel(value = "Staff",description = "员工信息")
public class Staff {
    @ApiModelProperty(value = "主键自增")
    private Integer staff_id;
    @ApiModelProperty(value = "员工编号")
    private String staff_code;
    @ApiModelProperty(value = "员工姓名")
    private String staff_name;
    @ApiModelProperty(value = "员工电话")
    private String staff_telephone;
    @ApiModelProperty(value = "密码")
    private String staff_password;
    @ApiModelProperty(value = "员工性别")
    private String staff_sex;
    @ApiModelProperty(value = "员工生日")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date staff_birthday;
    @ApiModelProperty(value = "员工权限")
    private Integer position_id;
    @ApiModelProperty(value = "员工部门id")
    private Integer dept_id;
    private Position position;
    private Dept dept;
    private Integer staff_status;
}
